package com.ucode.application.form.crm;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import com.ucode.springboot.starter.web.validator.annotation.CheckMember;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@SuppressWarnings("serial")
@ApiModel(value="跟进团队成员")
public class FollowTeamUserForm  implements Serializable{
    
    /**
     * 跟进目标Id
     */
    @ApiModelProperty(value = "跟进目标Id",required=true)
    @NotNull(message = "跟进目标Id不能为空")
    private Long targetId;
    /**
     * 成员Id
     */
    @ApiModelProperty(value = "成员Id",required=true)
    @NotNull(message = "成员Id不能为空")
    public Long userId; 
    /**
     * 权限类型:
     * 1、负责人权限(读写)2、读写权限3、只读权限
     */
    @ApiModelProperty(value = "权限类型:1、负责人权限(读写)2、读写权限3、只读权限",required=true,example="3",dataType="Integer")
    @NotNull(message = "权限类型不能为空")
    @CheckMember(value={"1","2","3"},message="权限类型非法")
    public Integer power;
    
    
    public Long getTargetId() {
        return targetId;
    }
    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }
    public Long getUserId() {
        return userId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Integer getPower() {
        return power;
    }
    public void setPower(Integer power) {
        this.power = power;
    }
}
